<?php

declare(strict_types=1);

namespace App\Entity;

use App\Models\Label;

class LabelEntity extends ABaseEntity
{
    public function __construct(Label $model = null)
    {
        if ($model === null) {
            $this->model = new Label();
        } else {
            $this->model = $model;
        }
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->model->id;
    }

    public function getClient(): string
    {
        return $this->model->client;
    }

    public function setClient(string $client): void
    {
        $this->model->client = $client;
    }

    public function getContent(): string
    {
        return $this->model->content;
    }

    public function setContent(string $content): void
    {
        $this->model->content = $content;
    }

    public function getCategory(): string
    {
        return $this->model->category;
    }

    public function setCategory(string $category): void
    {
        $this->model->category = $category;
    }

    public function getCategoryId(): int
    {
        return $this->model->category_id;
    }

    public function setCategoryId(int $categoryId): void
    {
        $this->model->category_id = $categoryId;
    }

    public function getStatus(): int
    {
        return $this->model->status;
    }

    public function setStatus(int $status): void
    {
        $this->model->status = $status;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return (string) $this->model->created_at;
    }

    public function getRemark(): string
    {
        return $this->model->remark;
    }

    public function setRemark(string $remark): void
    {
        $this->model->remark = $remark;
    }
}
